package org.barad.architecture.analyzer.archpad.region;

import java.awt.Color;

/**
 * This class describes an architectural region.
 * 
 * @author svetoslavganov@gmail.com (Svetoslav R. Ganov)
 *
 */
public class Region {
	private Color color;
	private boolean enabled;
	private String name;

	/**
	 * Creates a new instance.
	 */
	public Region() {
		this.enabled = true;
	}
	
	/**
	 * Creates a new instance.
	 * 
	 * @param name The name of the region.
	 */
	public Region(String name) {
		this.enabled = true;
		this.name = name;
	}
	
	/**
	 * Gets the region {@link Color}.
	 * 
	 * @return The {@link Color}.
	 */
	public Color getColor() {
		return color;
	}

	/**
	 * Sets the region {@link Color}.
	 * 
	 * @param color The {@link Color}.
	 */
	public void setColor(Color color) {
		this.color = color;
	}
	
	/**
	 * Returns if the region is enabled.
	 * 
	 * @return True if the region is enabled, false otherwise.
	 */
	public boolean isEnabled() {
		return enabled;
	}

	/**
	 * Sets if the region is enabled.
	 * 
	 * @param enabled If the region is enabled.
	 */
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	
	/**
	 * Gets the region name.
	 * 
	 * @return The region name.
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the region name.
	 * 
	 * @param name The region name.
	 */
	public void setName(String name) {
		this.name = name;
	}
}
